package com.atguigu.eduorder;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author LHL
 * @Date 23-3-8-0008 15:06
 * @注释
 */

@EnableDiscoveryClient  //nacos注册
@ComponentScan(basePackages = "com.atguigu")
@SpringBootApplication
@EnableHystrix
@EnableFeignClients    //服务调用
public class OrdersApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrdersApplication.class, args);
    }
}
